<?php

use yii\db\Migration;

/**
 * Class m200621_105839_add_field_service_to_smscode
 */
class m200621_105839_add_field_service_to_smscode extends Migration
{
    public function safeUp()
    {
        $this->execute('ALTER TABLE {{%smscode}} ADD `serviceType` VARCHAR (20) COMMENT "业务类型"');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%smscode}}', 'serviceType');
    }
}
